package cn.huiyunche.base.service.interfaces;

import java.util.Date;

public interface SOrderProductService {

    /**
     * @param customerOrderId 客户订单id
     * @param productId       物流产品id
     * @param arriveTime      到达时间
     * @return
     * @Title: add
     * @Description: 添加客户订单和物流产品关联
     * @return: long
     */
    long add(long customerOrderId, long productId, Date arriveTime);

    /**
     * @param customerOrderId 客户订单id
     * @return
     * @Title: getProductIdByCustemerOrderId
     * @Description: 根据客户订单id查询物流产品id
     * @return: Long
     */
    Long getProductIdByCustemerOrderId(long customerOrderId);

    /**
     * @param customerOrderId 客户订单id
     * @Title: deleteByCOrderId
     * @Description: 根据客户订单id删除物流产品关联记录
     * @return: void
     */
    void deleteByCOrderId(long customerOrderId);
}
